package com.qiwo.bpm.domain;


import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 
 * <pre>
 *  @author  chenwenchao
 *  @date 2021-04-01 16:37:07
 * 流程类型
 * </pre>
 * <small> 2021-04-01 16:37:07 | chenwenchao</small>
 */
@Data
@SuppressWarnings("serial")
@TableName("flow_type")
@EqualsAndHashCode(callSuper=true) 
public class FlowType extends Model<FlowType> implements Serializable {
	@TableId
	private Long id;

    /** 父节点id */
    @ApiModelProperty("父节点id")
    @TableField("parent_id")
    private Integer parentId;

    /** 分类编号 */
    @ApiModelProperty("分类编号")
    @TableField("type_code")
    private String typeCode;

    /** 分类名称 */
    @ApiModelProperty("分类名称")
    @TableField("type_name")
    private String typeName;

    /** 备注 */
    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

    /** 排序 */
    @ApiModelProperty("排序")
    @TableField("sort")
    private Integer sort;

    public String toString(){

        return "流程类型" + getTypeName() + "(id=" + getId() + ")";
    }

        @Override
        protected Serializable pkVal(){
            return this.id;
        }





}
